|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpow.ivyclient.Ivy2Udp
public class Ivy2Udp
It contact the server to get an identifier, some configuration parameter and the key to encrypt and decrypt messages. Then it listens messages on the ivy bus and send messages on active drones to the web server.
| Constructor Summary | |
|---|---|
Ivy2Udp(IvyIHM ihm,
PowUrl urlObj,
java.lang.String login,
java.lang.String password)
create an object which listens on the local ivy bus and send messages to the server |
|
| Method Summary | |
|---|---|
void |
bindMsg2Ivy()
This method binds the object to some messages of the bus Ivy. |
int |
getIvyWebId()
return the id of the bus for the server this id is provided by the server and is unique |
AcNetIdStorage |
getStorage()
provides the structure where data about the drone present on the ivy bus are stored |
void |
getWebId()
request a single id for the bus to the web server method get see @link http://hc.apache.org/httpclient-3.x/tutorial.html see @link blogs.sun.com/gc/entry/unable_to_find_valid_certification see @link http://blogs.sun.com/andreas/entry/no_more_unable_to_find |
void |
run()
listen the udp socket to get orders from web clients and send them to ivy |
void |
send(int acId)
This method send to the web server the datagram containing the informations about the aircraft |
void |
send(int acId,
java.lang.String s)
This method send a particular message about an aircraft |
void |
send(int acId,
java.lang.String s,
java.lang.String[] as)
This method send to the web server a specific order with parameters |
void |
setStorage()
initiate the object which allow to store information about drones |
void |
startHeartBeat()
create a thread which send heart beat message to the server |
void |
stop_thread()
stop all the thread Ivy2Udp , HeartBeat and ivy2UdpWriting |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Ivy2Udp(IvyIHM ihm,
PowUrl urlObj,
java.lang.String login,
java.lang.String password)
urlObj - describes information about the serverlogin - password - | Method Detail |
|---|
public void setStorage()
public AcNetIdStorage getStorage()
public int getIvyWebId()
public void getWebId()
throws IvyConnectionExeption
IvyConnectionExeptionpublic void startHeartBeat()
public void bindMsg2Ivy()
throws fr.dgac.ivy.IvyException
fr.dgac.ivy.IvyExceptionpublic void stop_thread()
public void send(int acId)
acId - Line of the matrix containing the informations about the plane
java.lang.Exception
public void send(int acId,
java.lang.String s,
java.lang.String[] as)
acId - : Line of the matrix containing the informations about the planes - : orderas - : parameters
public void send(int acId,
java.lang.String s)
acId - line of the matrix containing the informations about the planes - message that is to be sent to sendpublic void run()
run in interface java.lang.Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||